import '../test.css'
import { useSelector, useDispatch } from 'react-redux'
import { memo } from 'react'

const Footer = memo(function Footer(props) {
  console.log('fooooter')
  const { count } = useSelector(state => state.counter)
  const dispatch = useDispatch()
  return (
    <div className="footer">
      共计：<span style={{ color: 'red' }}>{count}</span>
    </div>
  )
})

export default Footer
